package cn.cdutetc.library.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 借阅信息DTO
 */
@Data
@Schema(description = "借阅信息DTO")
public class BorrowDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID")
    private Integer userId;

    @NotNull(message = "图书条目ID不能为空")
    @Schema(description = "图书条目ID")
    private Integer itemId;

    @Schema(description = "借阅备注")
    private String remark;
}